<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <ui:composition template="/templates/default.xhtml">
            <ui:define name="content">
                <h:panelGrid id="panelNewStudprogOutput" columns="2" title="#{locale.formStudprogInfo}" >
                    <f:facet name="header">
                        <h:outputText value="#{locale.formNewStudprogOutput}"/>
                     </f:facet>
                    <h:outputLabel value="#{locale.formCode}:" />
                    <h:outputText value="#{newStudyProgram.newStudprog.studyProgramCode}" />
                    <h:outputLabel value="#{locale.formName}:" />
                    <h:outputText value="#{newStudyProgram.newStudprog.name}"/>

                    <h:outputLabel value="#{locale.formDepartment}:" />
                    <h:outputText value="#{newStudyProgram.newStudprog.department.departmentID}"/>

                    <h:outputLabel value="#{locale.formApproved}:"/>
                    <h:outputText value="#{newStudyProgram.newStudprog.approved}">
                        <f:convertDateTime pattern="yyyy-MM-dd"/>
                    </h:outputText>
                    <h:outputLabel value="#{locale.formApprovedBy}:" />
                    <h:outputText value="#{newStudyProgram.newStudprog.approvedBy}"/>
                    <h:outputLabel value="#{locale.formRevised}:" />
                    <h:outputText value="#{newStudyProgram.newStudprog.lastRevised}">
                        <f:convertDateTime pattern="yyyy-MM-dd"/>
                    </h:outputText>
                    <h:outputLabel value="#{locale.formIsNKR}:" />
                    <h:outputText value="#{newStudyProgram.newStudprog.isNKR}"/>
                </h:panelGrid>
                <h:form>
                    <h:commandButton value="#{locale.buttonBack}" action="#{studyprogramList.navToStudyprogList}" />
                    <h:commandButton value="#{locale.buttonAddMore}" action="#{newStudyProgram.addNewStudyProgram}" />
                </h:form>
            </ui:define>
        </ui:composition>
    </h:body>
</html>

